// run: $exec < input
#include <iostream>
#include <string>
#include <cmath>

int const inf = 1 << 30;

char ch;
int wh, wd, wa;
int bh, bd, ba;
std::string lose = "Warrior loses";
std::string win = "Warrior wins";

int main()
{
	while (std::cin >> ch) {
		std::cin >> wh >> wa >> wd;
		std::cin >> bh >> ba >> bd;
		if (wa <= bd) { std::cout << lose << '\n'; continue; }
		int tw = std::ceil(bh/double(wa - bd));
		int tb = inf;
		if (ba > wd) tb = std::ceil(wh / double(ba - wd));
		if (ch == 'W') {
			if (tw <= tb) std::cout << win << '\n';
			else std::cout << lose << '\n';
		} else {
			if (tw < tb) std::cout << win << '\n';
			else std::cout << lose << '\n';
		}
	}
}

